<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>存定期</title>
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/jiazai.css">
    <style>
        .hea-con {
            position: fixed;
            top: 10px;
            right: 0;
            left: 0;
            box-sizing: border-box;
            padding: 0 20px;
            font-size: 16px;
            color: white;
            opacity: .7;
        }
        
        .content {
            position: fixed;
            top: 50px;
            right: 0;
            left: 0;
            bottom: 0;
            padding: 0 20px;
            box-sizing: border-box;
            overflow: auto;
        }
        
        .con-list {
            padding: 10px 0;
            opacity: .8;
            border-bottom: 1px solid rgba(36, 36, 36, 1);
        }
        
        .con-list h1 {
            font-size: 16px;
            color: white;
        }
        
        .con-list p {
            padding-top: 5px;
            font-size: 14px;
            color: rgba(255, 255, 255, .6);
        }
        
        .con-list span {
            font-size: 18px;
            color: #d95455;
        }
    </style>
</head>

<body style="background:#2a2c35;">
    <div id='app'>

        <!-- 加载中动画 -->
        <div id='jiazai-ani' v-if='jiazai'>
            <div class="arc"></div>
            <h1><span>LOADING</span></h1>
        </div>
        <!-- 加载中动画 -->

        <div class='hea-con dis-spa'>
            <img @click='_close()' src="./img/left.svg" width="22px" height="22px">
            <span>
                释放记录
            </span>
            <span style="opacity:0">1</span>
        </div>

        <div class='content'>
            <div class='con-list dis-spa' v-for="(val,index) in infoData" :key='index'>
                <div>
                    <h1 v-text='val.msg'>活期收益</h1>
                    <p v-text='val.addtime'>2018-15-11</p>
                </div>
                <span v-text='val.money' :style="{'color':val.money.slice(0,1)=='+'?'#1AD386':''}">-1000.00</span>
            </div>
        </div>
    </div>
    <script src="js/comm.js"></script>
    <script src="js/vue.min.js"></script>
    <script src="js/jquery.min.js"></script>
    <script>
        var send = function(id) {
            app.$data.regid = id;
            app.getData();
        }
        var app = new Vue({
            el: '#app',
            data: {
                jiazai: false,
                regid: '',
                page: 1,
                infoData: []
            },
            created: function() {

            },
            methods: {
                getData: function() {
                    var This = this;
                    This.jiazai = true;
                    var user = JSON.parse(localStorage.getItem('cc_user'));
                    _post(DIN_FAN_JIES, {
                        userid: user.userid,
                        session: user.session,
                        regid: This.regid,
                        page: This.page
                    }, function(data) {
                        This.jiazai = false;
                        if (data.status == 1) {
                            This.infoData = data.back;
                        } else {
                            _toast(data.msg);
                        }
                    })
                }
            }
        });
    </script>
</body>

</html>